using UnityEngine;
using System.Collections;

public class MainBlock : MonoBehaviour {

    Rigidbody m_Rigid;
    
	void Start () 
    {
        m_Rigid = this.GetComponent<Rigidbody>();
	}
	
	// Update is called once per frame
	void Update () 
    {
        PhysicMaterial material = new PhysicMaterial();
        material.dynamicFriction = 0.05f;

        m_Rigid.collider.material = material;

        Vector3 gravityVector = new Vector3(0, -ProjectHelper.m_Gravity * 5f, 0);
        rigidbody.AddForce(gravityVector, ForceMode.Acceleration);
	}
}
